package com.hadoop.project.entity.po;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

import java.io.Serializable;


/**
 * @Description:
 * @author:alexmaodali
 * @date:2025/4/13
 */
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserFlavor implements Serializable {

    /**
     * 自增ID
     */
    private Long id;

    /**
     * 用户ID
     */
    private Long uid;

    /**
     * 标签名
     */
    private String tname;

    /**
     * 标签占比
     */
    private String tpercent;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return this.id;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Long getUid() {
        return this.uid;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getTname() {
        return this.tname;
    }

    public void setTpercent(String tpercent) {
        this.tpercent = tpercent;
    }

    public String getTpercent() {
        return this.tpercent;
    }

    @Override
    public String toString() {
        return "自增ID:" + (id == null ? "空" : id) + ",用户ID:" + (uid == null ? "空" : uid) + ",标签名:" + (tname == null ? "空" : tname) + ",标签占总的出现的标签占比 -> 留一个分数 1/2:" + (tpercent == null ? "空" : tpercent);
    }
}
